The SmartType code completion greatly helps to find methods and variables that are suitable in the current context by analysing
the expected type of the whole expression.
For example, type
Thread thread = Thread.
and press Ctrl-Shift-Space to see what will happen.
The SmartType completion also works after "return", in an assignment, in argument list of a method call and in some other places.